using AppToolKit.Business;
using System;
namespace AppToolKit.Core.Context.Spring.AutoConstruction.Builder
{
	public class GenericeBusinessSupport
	{
		public bool IsSupport(Type type)
		{
			bool result;
			if (type.IsGenericType)
			{
				Type typeFromHandle = typeof(IBusiness<>);
				result = TypeHelper.IsGeneric(type, typeFromHandle);
			}
			else
			{
				result = false;
			}
			return result;
		}
		public Type GetEntityType(Type type)
		{
			return type.GetGenericArguments()[0];
		}
	}
}
